/**
 * Copyright &copy; 2016-2017 <a href="http://git.oschina.net/whoamien/backend_management">Backend Management</a> All rights reserved.
 */
package com.xw.app.generator.vo;

import java.util.List;
import java.util.Map;

import com.google.common.collect.Maps;

/**
 * The Class GeneratorSelection.
 *
 * @author Xi Wei
 */
public class GeneratorSelection {
	
	private String[] tableNames;//选中进行代码生成的表
	private String[] dictCodes;//字段所使用的数据字典代码，格式为<表名>||<字段名>||<数据字典代码>
	private String[] dictCodeColumns;//使用数据字典的字段
	private String[] foreignKeyDisplayColumn;//关联表显示字段，格式为<表名>||<字段名>||<关联表名>||<关联字段名>
	private String templateFolder;//模版存储路径，在Controller中获得
	private Map<String,List<String>> searchColumns = Maps.newHashMap();//用于查询的字段
	private Map<String,List<String>> listColumns = Maps.newHashMap();//用于列表显示的字段
	private Map<String,List<String>> editColumns = Maps.newHashMap();//用于添加/编辑的字段
	
	/**
	 * Gets the table names.
	 *
	 * @return the table names
	 */
	public String[] getTableNames() {
		return tableNames;
	}
	
	/**
	 * Sets the table names.
	 *
	 * @param tableNames the new table names
	 */
	public void setTableNames(String[] tableNames) {
		this.tableNames = tableNames;
	}
	
	/**
	 * Gets the dict codes.
	 *
	 * @return the dict codes
	 */
	public String[] getDictCodes() {
		return dictCodes;
	}
	
	/**
	 * Sets the dict codes.
	 *
	 * @param dictCodes the new dict codes
	 */
	public void setDictCodes(String[] dictCodes) {
		this.dictCodes = dictCodes;
	}
	
	/**
	 * Gets the dict code columns.
	 *
	 * @return the dict code columns
	 */
	public String[] getDictCodeColumns() {
		return dictCodeColumns;
	}
	
	/**
	 * Sets the dict code columns.
	 *
	 * @param dictCodeColumns the new dict code columns
	 */
	public void setDictCodeColumns(String[] dictCodeColumns) {
		this.dictCodeColumns = dictCodeColumns;
	}
	
	/**
	 * Gets the foreign key display column.
	 *
	 * @return the foreign key display column
	 */
	public String[] getForeignKeyDisplayColumn() {
		return foreignKeyDisplayColumn;
	}
	
	/**
	 * Sets the foreign key display column.
	 *
	 * @param foreignKeyDisplayColumn the new foreign key display column
	 */
	public void setForeignKeyDisplayColumn(String[] foreignKeyDisplayColumn) {
		this.foreignKeyDisplayColumn = foreignKeyDisplayColumn;
	}
	
	/**
	 * Gets the template folder.
	 *
	 * @return the template folder
	 */
	public String getTemplateFolder() {
		return templateFolder;
	}
	
	/**
	 * Sets the template folder.
	 *
	 * @param templateFolder the new template folder
	 */
	public void setTemplateFolder(String templateFolder) {
		this.templateFolder = templateFolder;
	}

	public Map<String,List<String>> getSearchColumns() {
		return searchColumns;
	}

	public void setSearchColumns(Map<String,List<String>> searchColumns) {
		this.searchColumns = searchColumns;
	}

	public Map<String,List<String>> getListColumns() {
		return listColumns;
	}

	public void setListColumns(Map<String,List<String>> listColumns) {
		this.listColumns = listColumns;
	}

	public Map<String,List<String>> getEditColumns() {
		return editColumns;
	}

	public void setEditColumns(Map<String,List<String>> editColumns) {
		this.editColumns = editColumns;
	}
	
	
	

}
